package com.ruoyi.orders.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.orders.mapper.TOrderRedirectMapper;
import com.ruoyi.orders.domain.TOrderRedirect;
import com.ruoyi.orders.service.ITOrderRedirectService;

/**
 * 订单改派Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-19
 */
@Service
public class TOrderRedirectServiceImpl implements ITOrderRedirectService 
{
    @Autowired
    private TOrderRedirectMapper tOrderRedirectMapper;

    /**
     * 查询订单改派
     * 
     * @param redirectId 订单改派主键
     * @return 订单改派
     */
    @Override
    public TOrderRedirect selectTOrderRedirectByRedirectId(Long redirectId)
    {
        return tOrderRedirectMapper.selectTOrderRedirectByRedirectId(redirectId);
    }

    /**
     * 查询订单改派列表
     * 
     * @param tOrderRedirect 订单改派
     * @return 订单改派
     */
    @Override
    public List<TOrderRedirect> selectTOrderRedirectList(TOrderRedirect tOrderRedirect)
    {
        return tOrderRedirectMapper.selectTOrderRedirectList(tOrderRedirect);
    }

    /**
     * 新增订单改派
     * 
     * @param tOrderRedirect 订单改派
     * @return 结果
     */
    @Override
    public int insertTOrderRedirect(TOrderRedirect tOrderRedirect)
    {
        return tOrderRedirectMapper.insertTOrderRedirect(tOrderRedirect);
    }

    /**
     * 修改订单改派
     * 
     * @param tOrderRedirect 订单改派
     * @return 结果
     */
    @Override
    public int updateTOrderRedirect(TOrderRedirect tOrderRedirect)
    {
        return tOrderRedirectMapper.updateTOrderRedirect(tOrderRedirect);
    }

    /**
     * 批量删除订单改派
     * 
     * @param redirectIds 需要删除的订单改派主键
     * @return 结果
     */
    @Override
    public int deleteTOrderRedirectByRedirectIds(Long[] redirectIds)
    {
        return tOrderRedirectMapper.deleteTOrderRedirectByRedirectIds(redirectIds);
    }

    /**
     * 删除订单改派信息
     * 
     * @param redirectId 订单改派主键
     * @return 结果
     */
    @Override
    public int deleteTOrderRedirectByRedirectId(Long redirectId)
    {
        return tOrderRedirectMapper.deleteTOrderRedirectByRedirectId(redirectId);
    }
}
